layui.define(['element', 'api', 'utils', 'amis', 'resource_toolbar'], function (exports) {
    "use strict";

    /**
     * Button component
     * */
    var MOD_NAME = 'header_right',
        $ = layui.jquery,
        utils = layui.utils,
        api = layui.api,
        resource_toolbar = layui.resource_toolbar,
        amis = layui.amis;

    var header_right = function (opt) {
        this.option = opt;
    };


    /**
     * Button start loading
     * */
    header_right.prototype.render = function (opt) {

        var option = {
            elem: opt.elem,
            resourceToolbarSettings: opt

        }

        resource_toolbar.render(option.resourceToolbarSettings)


        return new header_right(option);
    }




    exports(MOD_NAME, new header_right());
});